package com.example.huwang.dialog;

import android.app.Dialog;
import android.content.Context;
import android.view.View;
import android.widget.ImageView;

import com.example.huwang.R;

public class WarningDialog extends Dialog {
    private ImageView close;

    public WarningDialog(Context context) {
        super(context, R.style.msgDialogTheme);
        setContentView(R.layout.dialog_warning_layout);

        close = (ImageView) findViewById(R.id.close);
    }

    public void show(String s) {
        close.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                dismiss();
            }
        });
        show();
    }

}
